package com.billionsfinance.hessian.controller;

import com.billionsfinance.hessian.core.RemoteCall;
import com.billionsfinance.hessian.server.HelloServer;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @fileName: HelloController.java
 * @author: WeiHui.Zhang
 * @date: 2016-08-04  15:02
 * @version: v1.0.0
 */
@RestController
public class HelloController {

	@RequestMapping("/hello")
	public String hello() {
		HelloServer helloServer = RemoteCall.getRemoteObject(HelloServer.class);
		return helloServer.sayHello("hello");
	}
}
